#include "function.h"
#include "uart/uart.h"
#include "iap/iap.h"

uint8_t iap_flag = 0;

void function_init(void){
//	debug_uart_init();
}


void function_loop(void){
	if(iap_flag){
		if(iap_app_download() == 0){
			iap_jump_to_bootloader();
		}
	}
}
